package edu.hawaii.myisern.action;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;

/**
 * Holds the context for the Isern Application user session.
 * Taken from the Bugzooky example.
 * 
 * @author Tim Fennell
 * @author Lisa Chen
 */
public class IsernActionBean implements ActionBean {
  
  /** Action bean context instance for the user session. */
  private ActionBeanContext context;
  
  /**
   * Sets context of web session.
   * 
   * @param context instance.
   */
  public void setContext(ActionBeanContext context) {
    this.context = context;
  }

  /**
   * Gets the ActionBeanContext set by Stripes during initialization.
   * 
   * @return context instance
   */
  public ActionBeanContext getContext() {
    return this.context;
  }
}
